<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>04_修改元素的显示模式</title>
    <style>
      div {
        font-size: 20px;
        width: 200px;
        height: 200px;
        font-size: 20px;
        display: inline;
      }

      #d1 {
        background-color: skyblue;
      }

      #d2 {
        background-color: orange;
      }

      #d3 {
        background-color: green;
      }

      a {
        width: 200px;
        height: 200px;
        font-size: 20px;
        display: block;
      }

      a:first-of-type {
        background-color: skyblue;
      }

      a:nth-of-type(2) {
        background-color: orange;
      }
    </style>
  </head>
  <body>
    <div id="d1">您好1</div>
    <div id="d2">您好2</div>
    <div id="d3">您好3</div>
    <hr />
    <a href="www.baidu.com">baidu</a>
    <a href="www.jd.com">jd</a>
  </body>
</html>
